import {get,post} from '../../utils/request'

// 部门列表
const Department = ()=>{
    return get('department/list',)
}

// 班级列表
const Classes = (depid:any)=>{
    return get('classes/list',depid)
}

// 列表
const StuList =async (params:any)=>{
    return get('student/list',params)
}

// 学员删除
const StuDel = (id:Number)=>{
    return get('student/delete',{id})
}

// 学员添加和修改
const setPass = (params:any)=>{
    return post('student/add',params)
}

// 学员批量删除
const StuDell = (ids:any)=>{
    return post('student/deleteall',ids)
}

// 上传学生信息
const StuInfo = (file:any)=>{
    return post('student/upload',file)
}
export {Department,Classes,StuList,StuDel,setPass,StuDell,StuInfo}